home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1997 / MacHack 1997.toast / Hacks / Hacks ’97 / Finder Dungeon / source code / MoreFiles 1.4.6 / C Headers / Optimization.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-06-28  |  1.2 KB  |  40 lines  |  [TEXT/MPS ]

  1. /*
  2. **    The Optimization changes to MoreFiles source and header files, along with
  3. **    this file and OptimizationEnd.h, let you optimize the code produced
  4. **    by MoreFiles in several ways.
  5. **
  6. **    You may disable Pascal calling conventions in all MoreFiles routines
  7. **    except for system callbacks that require Pascal calling conventions.
  8. **    This will make C programs both smaller and faster.
  9. **    Just define __WANTPASCALELIMINATION to be 1 to turn this optimization on
  10. **    when building MoreFiles for use from C programs (you'll need to keep
  11. **    Pascal calling conventions when linking MoreFiles routines with Pascal
  12. **    programs).
  13. **
  14. =**    If Metrowerks compiler is used, "#pragma internal on" is defined to
  15. **    help produce better code when using Metrowerks compilers.
  16. **
  17. **    Original changes supplied by Fabrizio Oddone
  18. **
  19. **    File:    Optimization.h
  20. */
  21.  
  22.  
  23. /*
  24. **    If you want Pascal calling conventions disabled, set __WANTPASCALELIMINATION to 1.
  25. */
  26. #ifndef    __WANTPASCALELIMINATION
  27. #define    __WANTPASCALELIMINATION    0
  28. #endif
  29.  
  30. #if    __WANTPASCALELIMINATION
  31. #define pascal    
  32. #endif
  33.  
  34. /*  The following produces smaller code on the PowerPC;
  35. **  see the Metrowerks documentation for details.
  36. */
  37. #if defined(__MWERKS__)
  38. //#pragma internal on
  39. #endif
  40.